package top.ranzhang.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//配置与配置类相关的前缀，可以前往application.yml中查看
@ConfigurationProperties(prefix = "ranzhang.jwt")
public class JwtProperties {
    /**
     * 管理端员工生成jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

    /**
     * 其他端员工生成jwt令牌相关配置
     */
    private String otherSecretKey;
    private long otherTtl;
    private String otherTokenName;

}
